<?php

namespace App\Http\Controllers\Api\V1;

use App\Contracts\Order\OrderContracts;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Tymon\JWTAuth\Facades\JWTAuth;
use App\Models\MemberAddress;
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\DB;

class OrderController extends Controller
{

    public function store(OrderContracts $orderContracts,Request $request){

        $user = JWTAuth::parseToken()->touser();
        
        $res = $orderContracts->store($request->input('address_id'), $user, $request->input('remark'), $request->input('items'));
      
        return $this->response($res);
    }
}
